package com.atguigu.gulimall.coupon;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
/*
 *  配置nacos
 *      1.配置连接地址  cloud:
                        nacos:
                          discovery:
                            server-addr: 127.0.0.1:8848
 *      2.配置微服务名称
 *           application:
                     name: gulimall-coupon
        4.开启服务的注册和发现
 *            @EnableDiscoveryClient
 *      3。具体看applicaiton.yml nacos配置，访问8848/nacos   用户名和密码nacos
 *
 */
@EnableDiscoveryClient
@SpringBootApplication
public class GulimallCouponApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallCouponApplication.class, args);
    }

}
